import 'package:flutter/material.dart';
import 'package:flutter_todo/routes/login/login.route.dart';
import 'package:flutter_todo/routes/todo/todo.route.dart';

void main() {
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '待办事项应用',
      initialRoute: LoginRoute.routeName,
      routes: {
        LoginRoute.routeName: (context) => LoginRoute(),
        TodoRoute.routeName: (context) => TodoRoute(),
      },
    );
  }
}
